import Vue from 'vue'
import Vuex from 'vuex'
import state from './state'
import mutations from './mutations'

Vue.use(Vuex)



export default new Vuex.Store({

  state: state,

  // actions: {
  //   changeCityName: function(ctx, city){
  //     ctx.commit('changeCityName', city);
  //   }
  // },

  mutations: mutations,
  // mutations: {
  //   changeCityName: function(state, city){
  //     state.city = city;
  //     localStorage.city = city;
  //   }
  // }

  // getters: {
  //   nameCity(state){
  //     return '中国-' + state.city;
  //   }
  // }

})